# 求所有正数的和

def sum_for_positive(list_of_nums):
    # 请在这里填写你的代码
    total = 0
    for i in range(len(list_of_nums)):
        print(list_of_nums[i])
        total += list_of_nums[i]
        print(total)
        print("--------")
    return total

# 答案应该是16
numbers = [2, -3, 0, 12, -9, 2]
answer = sum_for_positive(numbers)
print(answer)